import 'package:sow_app_core/sow_app_core.dart';

import '../../util/share_preferences/preferences.dart';

class PrefTokenRepository implements TokenRepository {
  final Preferences pref;

  PrefTokenRepository(this.pref);
  @override
  Future<String> getToken() async {
    final token = await pref.getString('token');
    return token;
  }

  @override
  Future<void> setToken(String token) async {
    return pref.setString('token', token);
  }
}
